﻿using System;
using System.Collections.Generic;
using System.Text;

namespace D3Calc
{
    public class Equipment
    {
        public double Min { get; set; }
        public double Max { get; set; }
        public double Avg
        {
            get 
            {
                return Math.Round((Min + Max) / 2, 2);
            }
        }
        public double Main { get; set; }
        public double Speed { get; set; }
        public double Crit { get; set; }
        public double Hurt { get; set; }
        public bool UseNew { get; set; }
        public double NewMin { get; set; }
        public double NewMax { get; set; }
        public double NewAvg
        {
            get
            {
                return Math.Round((NewMin + NewMax) / 2, 2);
            }
        }
        public double NewMain { get; set; }
        public double NewSpeed { get; set; }
        public double NewCrit { get; set; }
        public double NewHurt { get; set; }
    }

    public delegate void ChangeEquipment();
}
